export default {
  namespaced: true,
  state: {
    token: null,
    username: '',
    userId: '',
    roleCode: ''
  },
  getters: {
  },
  mutations: {
    tokenUpdate (state, obj) {
      state.token = obj.newToken
      state.username = obj.userName
      state.userId = obj.userId
      state.roleCode = obj.roleCode
    },
    tokenDel (state) {
      state.token = null
    }
  },
  actions: {
  },
  modules: {
  }
}
